package com.baiyue.mapper;

import com.baiyue.entity.CommodityConsumption;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 *
 * @author 伍波
 * @date 2024-06-20
 */
@Mapper
public interface CommodityConsumptionMapper extends BaseMapper<CommodityConsumption> {
    @Select({
            "select",
            "*",
            "from commodity_consumption",
            "where uuid = #{uuid} and status != 1",
            "order by create_time desc"
    })
    List<CommodityConsumption> findByUuid(String uuid);
}
